package com.zygh.lz.service.impl;

import com.zygh.lz.entity.Operation;
import com.zygh.lz.service.SendLogService;
import com.zygh.lz.stapprove.SendLogUtils;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class SendLogServiceImpl implements SendLogService {

    /**
     * 信达日志异步上传
     *
     * @param operation
     * @return
     * @throws Exception
     */
    @Override
    @Async
    public Void sendLog(Operation operation) throws Exception {
        System.out.println("==========调用SendLogUtils=======");
        SendLogUtils.sendLog(operation);
        return null;
    }
}
